{include file='header.html'}
        <link type="text/css" href="../../page/css/reset.css" rev="stylesheet" rel="stylesheet">
        <link type="text/css" href="../../page/css/kaoqin.css" rev="stylesheet" rel="stylesheet">
        <link type="text/css" href="{$common_domain}/tools/datepicker/jquery.ui.theme.css" rel="stylesheet" />
        <link type="text/css" href="{$common_domain}/tools/datepicker/jquery.ui.datepicker.css" rel="stylesheet" />
        <link type="text/css" href="{$common_domain}/tools/datepicker/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
        <script type="text/javascript" src="{$common_domain}/tools/datepicker/jquery-1.7.2.js"></script>
        <script type="text/javascript" src="{$common_domain}/tools/datepicker/jquery.ui.core.js"></script>
        <script type="text/javascript" src="{$common_domain}/tools/datepicker/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="{$common_domain}/tools/datepicker/jquery.ui.datepicker.js"></script>
        <script type="text/javascript" src="{$common_domain}/tools/datepicker/DateTimePicker.js"></script>
        <div id="content">
                <div class="main">
                    <!--我的年假begin-->

                    <div class="div_date">
                        <i class="i_l">&nbsp;</i>
                        <span class="sp_c">{$page.curr_time} </span>
                        <i class="i_r">&nbsp;</i>
                        <div class="clear"></div>
                    </div>
                    <div class="titname">
                        <a href="/" class="selected">每日考勤</a>
                        <a href="/attendance/">考勤明细</a>
                        <a href="/myannual/">我的年假</a>
                        <a href="/myapply/">我的申请</a>
                    </div>
                    <div class="p p2">
                        <form name="form" action="/more/" method="get">
                            <input value="{if $params['start'] neq null}{$params['start']}{/if}" type="text" name="start" id="start" value=""  class="jko notime" style="width:130px; margin-left:7px;" readonly="readonly" size="50" />至
                            <input value="{if $params['end'] neq null}{$params['end']}{/if}" type="text" name="end" id="end" value="" class="jko notime" style="width:130px" readonly="readonly" />
                            <button class="btn" type="submit">查&nbsp;&nbsp;询</button>
                        </form>
                        <div class="clear"></div>
                    </div>

                    <table class="p p3_day" cellpadding="0" cellspacing="0" border="0">
                        <tr class="fir">
                            <td class="i0 i2r">日期</td>
                            <td class="i0 i4r">上班时间</td>
                            <td class="i0 i3r">考勤状态</td>
                            <td class="i0 i5r">说明</td>
                        </tr>
                        {foreach from=$list key=k item=v}
                        <tr {if $k eq 6} class="last"{/if}>
                            <td class="i0 i2r"{if $v.week eq '六' or $v.week eq '日'} style="color:#0c7fd4;"{/if}>{$v.month}月{$v.day}日 &nbsp;&nbsp;周{$v.week}</td>
                            <td class="i0 i4r">
                                {if $v.status.0.name eq '正常' and !($v.week eq '六' or $v.week eq '日')}
                                正常
                                {else}
                                    {if $v.start or $v.end}
                                        {if $v.sp_work_day or !($v.week eq '六' or $v.week eq '日')}
                                            <span{if $v.start_work gte 931} class="chi"{/if}>{$v.start}</span>
                                            {if $v.start and $v.end}-{/if}
                                            {if $v.end}<span {if $v.end_work <= 1800} class="chi"{/if}>{$v.end}</span> {/if}
                                        {/if}
                                    {/if}
                                {/if}
                            &nbsp;
                            </td>
                            <td class="i0 i3r">
                            {if $v.status neq null}
                                {if !($v.week eq '六' or $v.week eq '日')  or $v.sp_work_day}
                                    {foreach from=$v.status key=ty item=st}
                                    {if !($v.week eq '六' or $v.week eq '日') or $st neq '' }
                                    {if $st.name eq '正常'}
                                    <span class="img1">&nbsp;</span>
                                    {else}

                                    <span{if $st.id neq 999} class="chi"{/if}>{$st.name}</span> &nbsp;&nbsp;{if $st.id neq 999}<a href="/delay/?type={$st.id}&date={$smarty.now|date_format:'%Y'}-{$v.month}-{$v.day}&s={$v.start}&e={$v.end}">[提交原因]</a>{/if}

                                    {/if}
                                    {/if}
                                    {$st.status}{if $smarty.foreach.name.total eq $smarty.foreach.name.index}<br>{/if}
                                    {/foreach}
                                {/if}
                            {else}
                            &nbsp;
                            {/if}
                            </td>
                            <td class="i0 i5r">
                            {if $v.reason neq null}
                                {if $v.reason}
                                {foreach from=$v.reason key=rsn item=rs}
                                {$rs}<br>
                                {/foreach}
                                {/if}
                            {else}
                                &nbsp;
                            {/if}
                            </td>
                        </tr>
                        {/foreach}
                    </table>
                    <div class="p p3 p33">
                        {if $page.pre}
                        <a href="{$page.pre}">上一页</a>
                        {else}
                        上一页
                        {/if}
                        |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        {if $page.next}
                        <a href="{$page.next}">下一页</a>
                        {else}
                        下一页
                        {/if}
                    </div>
                        <!--我的年假end-->



                        <!--我的申请begin-->
                        <!--我的年假end-->
                </div>
            </div>
        </div>
<script type="text/javascript">
             $(document).ready(function() {
                        $("#start").datetimepicker();
                        $("#end").datetimepicker();
                     })
</script>
    </body>
</html>
